package com.jt.service;

import com.jt.mapper.EmpMapper;
import com.jt.pojo.Emp;
import com.jt.pojo.User;
import com.jt.vo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

@Service
public class EmpServiceImpl implements EmpService{

    @Autowired
    private EmpMapper empMapper;

    @Override
    public List<Emp> findEmp() {
        return  empMapper.findEmp();
    }

    @Override
    public void addEmp(Emp emp) {
        empMapper.addEmp(emp);
    }

    @Override
    public void updateEmp(Emp emp) {
        empMapper.updateEmp(emp);
    }

    @Override
    public void deleteEmp(Integer empId) {
        empMapper.deleteEmp(empId);
    }

//    @Override
//    public void findEmpById(Integer empId) {
//        empMapper.findEmpById(empId);
//    }

    @Override
    public PageResult findEmpList(PageResult pageResult) {
        pageResult.getPageSize();

    }


}
